﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace CochinitaCorte//.CochinitaCorteData
{
	using System.IO;
	using System.Runtime.Serialization.Formatters.Binary;
     

	public  class Serialization
	{
        //private BinaryFormatter serilization = new BinaryFormatter();
        //private string fileName;
        //private Stream fs;
        //private FtpParams ftpParam;

        //public Serialization(string fileName)
        //{
        //    this.fileName = fileName + ".bin";
        //}

        //public void Serialized(FtpParams ftpParam)
        //{
        //    if (ftpParam != null)
        //    {
        //        Stream fs = File.Create(fileName);
        //        serilization.Serialize(fs, ftpParam);
        //        fs.Close();
        //    }
        //}

        //public FtpParams DeSerialized()
        //{
        //    if (File.Exists(fileName))
        //    {
        //        fs = File.OpenRead(fileName);
        //        ftpParam = (FtpParams)serilization.Deserialize(fs);
        //        fs.Close();
        //    }
        //    return ftpParam;
        //}
	}
}
